package xyz.chaobei.date;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @author <a href='mailto:maruichao52@gmail.com'>MRC</a>
 * @since 2021/2/19
 */
public class DateTimeFormatterTest {

    public static void main(String[] args) {


        DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("YYYY-MM-dd HH:mm:ss");


        LocalDateTime dateTime = LocalDateTime.now();
        System.out.println("1. 基础格式化=" + dateTime.format(dateTimeFormatter));


    }

}
